﻿using System;
using System.Runtime.Serialization;

namespace ElectronicCommerce.Framework.Payment.Contract.DataContract
{
    /// <summary>
    /// 收费回调验证结果类型
    /// </summary>
    [Serializable]
    [DataContract]
    public enum ChargeCallbackResultType
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 0,

        /// <summary>
        /// 签名无效
        /// </summary>
        SignFail = 1,

        /// <summary>
        /// 返回的数据没有通过校验
        /// </summary>
        DataNotVerified = 2,

        /// <summary>
        /// 已支付过
        /// </summary>
        DuplicatePay = 3,

        /// <summary>
        /// 等待支付
        /// </summary>
        WaitPay = 4,

        /// <summary>
        /// 支付失败
        /// </summary>
        Fail = 999,
    }
}
